<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WidgetList.ascx.cs" Inherits="TestWidget.Control.WidgetList"   %>
<%@ Register Src="~/Control/WidgetListSub.ascx" TagName="WidgetListSub" TagPrefix="uc" %>
<uc:WidgetListSub id="WidgetListSub" runat="server" />
<br/>
<br/>
<asp:Repeater ID="rptWidgetList" runat="server" OnItemCommand="rptWidgetList_ItemCommand" OnItemDataBound="rptWidgetList_ItemDataBound">
    <HeaderTemplate>
        <table width="100%" border="0" >
            <tr>
            <th>
                Id
            </th>
            <th>
                Tile
            </th>
            <th>
                Column
            </th>
            <th>
                Url
            </th>
            <th>
                Action
            </th>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
            <tr>
            <td>
                <%# DataBinder.Eval(Container.DataItem, "Id") %>
            </td>
            <td>
                <%# DataBinder.Eval(Container.DataItem, "Title") %>
            </td>
            <td>
                <%# DataBinder.Eval(Container.DataItem, "Column") %>
            </td>
            <td>
                <%# DataBinder.Eval(Container.DataItem, "Url") %>
            </td>
			<td>
				<asp:LinkButton ID="lbnEdit" runat="server" Text="Edit" CommandName="Edit" CommandArgument="" />
				<asp:LinkButton ID="lbnView" runat="server" Text="View" CommandName="View" CommandArgument="" />
				<asp:LinkButton ID="lbnDelete" runat="server" Text="Delete" CommandName="Delete" CommandArgument="" />
				<asp:LinkButton ID="lbnCopy" runat="server" Text="Copy" CommandName="Copy" CommandArgument="" />
			</td>
            </tr>
    </ItemTemplate>        
    <FooterTemplate>
        </table>    
    </FooterTemplate>
</asp:Repeater>
<asp:Label ID="lblWidget" runat="server" Visible="false" />
